.tagCard {
  padding: 0;
  margin-bottom: 15px;
}

.tagCardExtra {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.tagCardList {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
}

.tagCardItem {
  border: 1px solid #96c2ee;
  border-radius: 3px 3px 0 0;
  background-color: #fff;
  margin-bottom: 0;
  width: calc(33.3333% - 10px);
  flex: 1 1 calc(33.3333% - 10px);
  box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
  transition: all 0.3s ease;
  height: 160px;
  display: flex;
  flex-direction: column;
}

.tagCardTop {
  height: 6px;
  width: 100%;
  background-color: #aac9ff;
  border-radius: 3px 3px 0 0;
}

.tagCardBody {
  padding: 16px 16px 6px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cardName {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.cardName img {
  margin-right: 15px;
}

.cardName span {
  font-weight: bold;
  font-size: 14px;
  color: #333;
}

.cardBody {
  height: 90px;
  overflow: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
}

.tagItem {
  padding: 5px;
  text-align: center;
  margin: 0 10px 10px 0;
  border-radius: 2px;
}

.tagName {
  font-size: 14px;
}

@media (width <= 1200px) {
  .tagCardItem {
    width: calc(50% - 10px);
    flex: 1 1 calc(50% - 10px);
  }
}

@media (width <= 992px) {
  .tagCardItem {
    width: 100%;
    flex: 1 1 100%;
  }
}

@media (width <= 768px) {
  .tagCard {
    padding: 0 4px;
  }

  .tagCardExtra {
    justify-content: flex-end;
  }

  .tagCardList {
    gap: 12px;
  }

  .cardBody {
    max-height: none;
  }
}
